// 长者管理

import { alovaInstance as alova } from './alova'
import type { AddStaffParam, ApiCommonResponse } from '@/types'

/**
 * @description: 添加职工
 * @param {FormSubmitFields} data
 * @return {*}
 */
export const addStaff = (data: AddStaffParam) => alova.Post<ApiCommonResponse>('/staff/add', { ...data })

/**
 * @description: 职工列表
 * @return {*}
 */
export const queryStaffList = () => alova.Post<ApiCommonResponse>('/staff/list')
